#ifndef CONFIG_H
#define CONFIG_H

#include <QSettings>
#include <QString>
#include <QStringList>
#include <QIcon>
#include <QDir>
#include <QApplication>

class Config : public QSettings
{
		Q_OBJECT

	private:

	public:
		explicit Config (QObject *parent) : QSettings (parent)
		{

		}

		static const QString appVersion () { return "0.40"; }
		static const QString appName () { return "okaract"; }
		static const QString appWorkPath () { return QDir::tempPath () + "/" + appName () + '/'; }
		static const QIcon appIcon () { return QIcon (":/images/appIcon.png"); }
		static const QStringList dicsPossiblePaths ()
		{
			return QStringList ()
					<< "/usr/share/okaract/"
					<< QApplication::applicationDirPath () + "/dics/"
					<< ":/dics/"
					   ;
		}

		QString currentLanguage ();
		void setCurrentLanguage (QString lang);
};

#endif // CONFIG_H
